<template>
  展示首页
  <div>
    <button @click="updateName">修改name</button>
  </div>
  <div class="test">
    {{ userStore.name }}
  </div>
</template>

<script setup lang="ts">
import { useUserStore } from '@/store/modules/user'

const userStore = useUserStore()

function updateName() {
  userStore.updateName('dp')
}
</script>
